toMap

fun toMap(): Map<K, V>

Returns all entries of this map as a Map with keys of type K and values of type V.